package com.franklin.validation.tool.annotations.spring;

import com.franklin.validation.tool.annotations.BaseAnnotation;

/**
 * Description :
 * Create By: Franklin
 * Date : 2020/6/19 14:25
 */
public enum RequestParamAnnotations implements BaseAnnotation{
    REQUEST_PARAM("RequestParam", "org.springframework.web.bind.annotation.RequestParam"),
    REQUEST_BODY("RequestBody", "org.springframework.web.bind.annotation.RequestBody"),
    PATH_VARIABLE("PathVariable", "org.springframework.web.bind.annotation.PathVariable"),
    REQUEST_HEADER("RequestHeader", "org.springframework.web.bind.annotation.RequestHeader");

    private String shortName;
    private String qualifiedName;

    RequestParamAnnotations(String shortName, String qualifiedName) {
        this.shortName = shortName;
        this.qualifiedName = qualifiedName;
    }

    @Override
    public String getQualifiedName() {
        return this.qualifiedName;
    }

    @Override
    public String getShortName() {
        return this.shortName;
    }
}
